﻿using BattleFury.Lib.Maps.Data;

namespace BattleFury.Lib.Serialization
{
	public class TileMapSerializer
	{
		public static void Serialize(TileMapData map, string path)
		{
			Serializer.Serialize(map, path, new[] { typeof(TileLayerData), typeof(CollisionLayerData) });
		}

		public static TileMapData Deserialize(string path)
		{
			return Serializer.Deserialize<TileMapData>(path, new[] {typeof (TileLayerData), typeof (CollisionLayerData)});
		}
	}
}